#!/usr/bin/python

import os

def walkfunc(ext, dir, files):
    for i in files:

        if i.find("~") != -1:   # the files should be filte
            continue
        elif i.find(".svn-base") != -1:
            continue
        elif i.find(".h") != -1:
            print i
        elif i.find(".cpp") != -1:
            print i

os.path.walk(".",walkfunc,".h")

